i = 0
while i < 5:
    # 每行打印的内容
    j = 0
    while j < 3:
        print(j, end=" ")
        j += 1
    print()

    i += 1
